const path = require('path')

module.exports = {
  entry: {
    main:'./main.js',
    layout:'./Layout_demo/index.js',
  },
  output: {
    filename: '[name].js'
  },
  module: {
    rules: [{
        test: /\.scss$/,
        use: ['style-loader', 'css-loader','sass-loader']
      },
      {
        test: /\.(png|jpg)$/,
        use: [{
          loader: 'url-loader',
          options: {
            limit: 8192
          }
        }]
      }
    ]
  }
}